package com.dfbz.demo02_Writer;

import java.io.FileWriter;
import java.io.Writer;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo02_写出换行 {
    public static void main(String[] args)throws Exception {

        Writer writer=new FileWriter("001.txt");

        writer.write("猪脚饭");
//        writer.write("\r\n");
        writer.write(System.getProperty("line.separator"));

        writer.write("烧鹅饭");

        writer.close();
    }
}
